package com.sy.bean.pucharse;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel("采购明细")
@Data
public class PurchaseDetail {
    @ApiModelProperty(hidden = true)
    int id;
    @ApiModelProperty("商品id")
    int goodsId;

    @ApiModelProperty("商品名称")
    @NotBlank(message = "商品名称不能为空！")
    String goodsname;

    @ApiModelProperty("商品单位")
    String unit;
    @ApiModelProperty("仓库")

    String warehouse;
    @ApiModelProperty("仓库id")
    int wid;
    @ApiModelProperty("商品数量")
    int num;

    @ApiModelProperty("单价")
    double price;

    @ApiModelProperty("折扣率")
    double rate;

    @ApiModelProperty("折扣金额")
    double rateMoney;

    @ApiModelProperty("采购金额")
    double money;

    @ApiModelProperty("备注")
    String note;
}
